import unittest
import fileListerTests
import imageSeqTests

def getSuite():
    
    isValidSuite = unittest.TestSuite()
    isValidSuite.addTest(imageSeqTests.ImageSequenceTest("testIsValid_true"))
    isValidSuite.addTest(imageSeqTests.ImageSequenceTest("testIsValid_false"))
    isValidSuite.addTest(imageSeqTests.ImageSequenceTest("testIsValid_falseBadExt"))
    isValidSuite.addTest(imageSeqTests.ImageSequenceTest("testIsValid_falseBadFramesPos"))
    
    matchFilesSuite = unittest.TestSuite()
    matchFilesSuite.addTest(imageSeqTests.ImageSequenceTest("testFileMatches_true"))
    matchFilesSuite.addTest(imageSeqTests.ImageSequenceTest("testFileMatches_falseFramePadding"))
    matchFilesSuite.addTest(imageSeqTests.ImageSequenceTest("testFileMatches_falseNoFrame"))
    matchFilesSuite.addTest(imageSeqTests.ImageSequenceTest("testGetFilesThatMatch"))
    matchFilesSuite.addTest(imageSeqTests.ImageSequenceTest("testGetFilesThatMatchInDir"))
    
    mockFileListerSuite = unittest.makeSuite(fileListerTests.MockFileListerTests)
    
    suite = unittest.TestSuite([isValidSuite, matchFilesSuite, mockFileListerSuite])
    
    return suite
    
    
if __name__ == '__main__':
    suite = getSuite()
    unittest.TextTestRunner(verbosity=2).run(suite)